package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);


    public PageResult findPage(QueryPageBean queryPageBean);

    public List<User> findAll();

    public void add(User user, Integer[] roleIds);

    public User findById(Integer id);

    public void edit(User user, Integer[] roleIds);

    public void delete(Integer id);

    public Integer[] findRoleIdsById(Integer id);
}
